# Find Poco
list(APPEND PocoLibs)
list(APPEND PocoIncludes)

function(FindPoco PocoComponents)
	find_package(Poco COMPONENTS ${PocoComponents} REQUIRED)

	if(Poco_FOUND)
		set(PocoIncludes ${PocoIncludes} ${Poco_INCLUDE_DIRS} PARENT_SCOPE)
		set(PocoLibs ${PocoLibs} ${Poco_LIBRARIES} PARENT_SCOPE)
		set(PocoIncludes ${PocoIncludes} ${Poco_DIR}/../../include PARENT_SCOPE)
	endif()
endfunction()